package com.up.api.study.redission;

import com.up.redis.config.RedissonAdapterConfiguration;
import com.up.redis.config.RedissonProperties;
import org.springframework.boot.autoconfigure.condition.ConditionalOnProperty;
import org.springframework.boot.context.properties.EnableConfigurationProperties;
import org.springframework.context.annotation.Configuration;

@Configuration
@ConditionalOnProperty(prefix = "redisson.client", value = "enable", havingValue = "true")
@EnableConfigurationProperties(RedissonProperties.class)
public class RedissonConfiguration extends RedissonAdapterConfiguration {
    public RedissonConfiguration(RedissonProperties redissonProperties) {
        super(redissonProperties);
    }
}